<?php
    use_helper('sdInteractiveChart');

	$data = array();
	$labels = array();
	foreach ($data_act as $k => $v) {
		$data[] = $v;
		$labels[] = "$k";
	}
	$data = array('actions' => $data);
	
    // This line then outputs the JSON array to the browser.
    echo InteractiveChart::generateJsonData($data, $labels, array());

?>
